#include "Sa2dDom.h"

position::position() {

}

position::position(double x, double y) {
 setX(x);
 setY(y);
}

double position::getX() {
	return x;
}

double position::getY() {
	return y;
}

void position::setX(double x) {
	this->x = x;
}

void position::setY(double y) {
	this->y = y;
}
string position::toString(int indent) {
	string tabs = this->getIndent(indent);
	stringstream returnString;
	returnString << tabs << "position:\n";
	returnString << tabs << "x pos: " << x <<"\n";
	returnString << tabs << "y pos: " << y <<"\n";
	return returnString.str();
}
